package com.example.ktpspringboot.controller;

import com.example.ktpspringboot.entity.User;
import com.example.ktpspringboot.service.impl.LoginServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
public class LoginController {

    @Autowired
    private LoginServiceImpl loginServiceImpl;


    @RequestMapping("/login")
    public String login(@RequestBody User user) {
        return loginServiceImpl.checkLogin(user);
    }

}
